<div>
	<img style="width:100px;height:140px;float:left" src="<?php echo $user['pic_url'];?>">
	<div style="height:140px;">
		<div class='header' style="margin-bottom:50px;">Hello <?php echo "$user[f_name] & $partner[f_name]";?></div>
		<a href="<?php echo My_URL::app_url('user/editprofile');?>">
			<img src='<?php echo My_URL::cdn_url('html/img/editprofile_btn.jpg');?>'>
		</a>
		<a href="<?php echo My_URL::app_url('');?>">
			<img src='<?php echo My_URL::cdn_url('html/img/uploadphoto.jpg');?>'>
		</a>
	</div>
</div>
<form action="<?php echo My_URL::app_url('welcome/home');?>" method="post">
	<input type="hidden" name='place' value='<?php echo $user['uid'];?>'/>
	<textarea rows="4" cols="40" name='text' placeholder="Tell others, what you're up to..."
		style="border:7px solid #026481;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;"></textarea>
	<input type="submit" name='share' value=" "
	style="border:0;width:93px;height:60px;position:relative;top:-50px;background:url('<?php echo My_URL::cdn_url('html/img/sayit.jpg');?>');">
</form>
<?php $threadid = -1;
	$last_pid = -1;
if(empty($feeds)) {
	echo "No updates";
} else echo "Recent updates";

foreach ($feeds as $feed) {
	echo "<div class='mainpost' id=feed_$feed[feedid]><b>$feed[postedby]</b>: $feed[text]";
	if(isset($feed['comments'])) {
		echo "<div class='comments'>";
		foreach ($feed['comments'] as $comment) {
			echo "<div class='commentpost'><b>$comment[postedby]</b>: $comment[text]</div>";
		}
		echo "</div>";
	}
	?>
	<form class='comment_form'>
		<input type='hidden' name='feedid' value='<?php echo $feed['feedid'];?>' />
		<textarea rows="2" cols="50" name='comment' placeholder="Add comment..."></textarea>
		<input type="submit" name='post_it' value='post' />
	</form>
	<?php echo "</div>";
}